<script setup lang="ts">
import { onMounted } from 'vue'
import { useUserStore } from '@/stores/user'
import Layout from '@/components/layout/Layout.vue'

const userStore = useUserStore()

onMounted(() => {
  // 初始化用户状态
  userStore.initUser()
})
</script>

<template>
  <div id="app">
    <Layout />
  </div>
</template>

<style>
#app {
  min-height: 100vh;
}
</style>
